<?php
	function paramsFromGet(&$ar)
	{
		foreach($ar as $k => $o)
			if(isset($_GET[$k])) $ar[$k] = $_GET[$k];
	}
	function paramsFromPost(&$ar)
	{
		foreach($ar as $k => $o)
			if(isset($_POST[$k])) $ar[$k] = $_POST[$k];
	}
?>